package cn.zyjblogs.server.role.dto;

import cn.zyjblogs.starter.common.entity.dto.PageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zhuyijun
 */
@ApiModel(description = "角色分页查询")
@Data
@NoArgsConstructor
public class RolePageDto extends PageDto implements Serializable {
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "状态")
    private Integer status;
    @ApiModelProperty(value = "类型")
    private Integer roleType;
    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

    @Builder
    public RolePageDto(Integer page, Integer limit, String name, Integer status, Integer deleted) {
        super(page, limit);
        this.name = name;
        this.status = status;
        this.deleted = deleted;
    }
}
